package org.example.seat_management.Mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.seat_management.Entity.Classroom;

import java.util.List;

@Mapper
public interface ClassroomMapper {
    int insert(Classroom entity);
    int update(Classroom entity);
    Classroom findById(@Param("id") Long id);
    Classroom findByCode(@Param("roomCode") String roomCode);
    List<Classroom> findAll();
}


